

package mapbase
{
	import flash.display.Bitmap;
	import flash.utils.IDataInput;
	
	import interfaces.IDispose;
	
	public class mapScene implements IDispose
	{
		private var _mapResPath:String;
		public var _bkBmp:Bitmap;
		
		private var _map:map = new map();
		
		public function get Map():map
		{
			return _map;
		}
		
		public function width():int
		{
			return _map.getWidth();
		}
		public function height():int
		{
			return _map.getHeight();
		}
		
		public function mapScene():void
		{
			_mapResPath = "";
		}
		
		public function get mapResPath():String
		{
			return _mapResPath;
		}
		public function set mapResPath(path:String):void
		{
			_mapResPath = path;
		}
		
		public function loadMap(data:IDataInput):Boolean
		{
			return _map.loadMapFrom(data);			
		}
		
		public function dispose():void
		{
			_map.dispose();
		}
	}
}